package com.cheil.publish.service.ai;

import java.util.Objects;
import org.springframework.ai.image.ImageGenerationMetadata;

/**
 * @author ssk
 * @date 2025/9/5
 **/
public class DashscopeImageGenerationMetadata implements ImageGenerationMetadata {

    private String revisedPrompt;

    public DashscopeImageGenerationMetadata(String revisedPrompt) {
        this.revisedPrompt = revisedPrompt;
    }

    public String getRevisedPrompt() {
        return this.revisedPrompt;
    }

    @Override
    public String toString() {
        return "DashscopeImageGenerationMetadata{" + "revisedPrompt='" + this.revisedPrompt + '\'' + '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof DashscopeImageGenerationMetadata that)) {
            return false;
        }
        return Objects.equals(this.revisedPrompt, that.revisedPrompt);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.revisedPrompt);
    }

}